package io.mycat.prototypeserver.mysql;

import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlCreateTableStatement;
import com.sun.jna.platform.EnumUtils;
import io.mycat.config.LogicSchemaConfig;
import io.mycat.config.NormalTableConfig;
import io.mycat.util.JsonUtil;
import lombok.SneakyThrows;
import org.apache.groovy.util.Maps;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;
import java.util.function.Function;

public class PerformanceSchema {

    public static String table_lock_waits_summary_by_table = "CREATE TABLE performance_schema.table_lock_waits_summary_by_table (\n\t`OBJECT_TYPE` varchar(64) DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(64) DEFAULT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_NORMAL` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_NORMAL` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_NORMAL` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_NORMAL` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_NORMAL` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_WITH_SHARED_LOCKS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_WITH_SHARED_LOCKS` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_WITH_SHARED_LOCKS` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_WITH_SHARED_LOCKS` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_WITH_SHARED_LOCKS` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_HIGH_PRIORITY` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_HIGH_PRIORITY` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_HIGH_PRIORITY` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_HIGH_PRIORITY` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_HIGH_PRIORITY` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_NO_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_NO_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_NO_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_NO_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_NO_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_EXTERNAL` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_EXTERNAL` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_EXTERNAL` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_EXTERNAL` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_EXTERNAL` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_WRITE_ALLOW_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE_ALLOW_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE_ALLOW_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE_ALLOW_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE_ALLOW_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_WRITE_CONCURRENT_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE_CONCURRENT_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE_CONCURRENT_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE_CONCURRENT_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE_CONCURRENT_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_WRITE_LOW_PRIORITY` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE_LOW_PRIORITY` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE_LOW_PRIORITY` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE_LOW_PRIORITY` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE_LOW_PRIORITY` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_WRITE_NORMAL` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE_NORMAL` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE_NORMAL` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE_NORMAL` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE_NORMAL` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_WRITE_EXTERNAL` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE_EXTERNAL` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE_EXTERNAL` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE_EXTERNAL` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE_EXTERNAL` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `OBJECT` (`OBJECT_TYPE`, `OBJECT_SCHEMA`, `OBJECT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String socket_summary_by_event_name = "CREATE TABLE performance_schema.socket_summary_by_event_name (\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_READ` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String setup_threads = "CREATE TABLE performance_schema.setup_threads (\n\t`NAME` varchar(128) NOT NULL,\n\t`ENABLED` enum('YES', 'NO') NOT NULL,\n\t`HISTORY` enum('YES', 'NO') NOT NULL,\n\t`PROPERTIES` set('singleton', 'user') NOT NULL,\n\t`VOLATILITY` int(11) NOT NULL,\n\t`DOCUMENTATION` longtext,\n\tPRIMARY KEY (`NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String replication_group_member_stats = "CREATE TABLE performance_schema.replication_group_member_stats (\n\t`CHANNEL_NAME` char(64) NOT NULL,\n\t`VIEW_ID` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`MEMBER_ID` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`COUNT_TRANSACTIONS_IN_QUEUE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_TRANSACTIONS_CHECKED` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_CONFLICTS_DETECTED` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_TRANSACTIONS_ROWS_VALIDATING` bigint(20) UNSIGNED NOT NULL,\n\t`TRANSACTIONS_COMMITTED_ALL_MEMBERS` longtext NOT NULL,\n\t`LAST_CONFLICT_FREE_TRANSACTION` text NOT NULL,\n\t`COUNT_TRANSACTIONS_REMOTE_IN_APPLIER_QUEUE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_TRANSACTIONS_REMOTE_APPLIED` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_TRANSACTIONS_LOCAL_PROPOSED` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_TRANSACTIONS_LOCAL_ROLLBACK` bigint(20) UNSIGNED NOT NULL\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String file_summary_by_event_name = "CREATE TABLE performance_schema.file_summary_by_event_name (\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_READ` bigint(20) NOT NULL,\n\t`COUNT_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_WRITE` bigint(20) NOT NULL,\n\t`COUNT_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_stages_summary_by_user_by_event_name = "CREATE TABLE performance_schema.events_stages_summary_by_user_by_event_name (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `USER` (`USER`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String global_status = "CREATE TABLE performance_schema.global_status (\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` varchar(1024) DEFAULT NULL,\n\tPRIMARY KEY (`VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String replication_applier_status_by_coordinator = "CREATE TABLE performance_schema.replication_applier_status_by_coordinator (\n\t`CHANNEL_NAME` char(64) NOT NULL,\n\t`THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`SERVICE_STATE` enum('ON', 'OFF') NOT NULL,\n\t`LAST_ERROR_NUMBER` int(11) NOT NULL,\n\t`LAST_ERROR_MESSAGE` varchar(1024) NOT NULL,\n\t`LAST_ERROR_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_PROCESSED_TRANSACTION` char(57) DEFAULT NULL,\n\t`LAST_PROCESSED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_PROCESSED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_PROCESSED_TRANSACTION_START_BUFFER_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_PROCESSED_TRANSACTION_END_BUFFER_TIMESTAMP` timestamp(6) NOT NULL,\n\t`PROCESSING_TRANSACTION` char(57) DEFAULT NULL,\n\t`PROCESSING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`PROCESSING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`PROCESSING_TRANSACTION_START_BUFFER_TIMESTAMP` timestamp(6) NOT NULL,\n\tPRIMARY KEY (`CHANNEL_NAME`),\n\tKEY `THREAD_ID` (`THREAD_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_transactions_summary_global_by_event_name = "CREATE TABLE performance_schema.events_transactions_summary_global_by_event_name (\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_waits_summary_by_host_by_event_name = "CREATE TABLE performance_schema.events_waits_summary_by_host_by_event_name (\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `HOST` (`HOST`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String session_status = "CREATE TABLE performance_schema.session_status (\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` varchar(1024) DEFAULT NULL,\n\tPRIMARY KEY (`VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String hosts = "CREATE TABLE performance_schema.hosts (\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`CURRENT_CONNECTIONS` bigint(20) NOT NULL,\n\t`TOTAL_CONNECTIONS` bigint(20) NOT NULL,\n\tUNIQUE KEY `HOST` (`HOST`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String data_lock_waits = "CREATE TABLE performance_schema.data_lock_waits (\n\t`ENGINE` varchar(32) NOT NULL,\n\t`REQUESTING_ENGINE_LOCK_ID` varchar(128) NOT NULL,\n\t`REQUESTING_ENGINE_TRANSACTION_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`REQUESTING_THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`REQUESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`REQUESTING_OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`BLOCKING_ENGINE_LOCK_ID` varchar(128) NOT NULL,\n\t`BLOCKING_ENGINE_TRANSACTION_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`BLOCKING_THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`BLOCKING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`BLOCKING_OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\tKEY `REQUESTING_ENGINE_LOCK_ID` (`REQUESTING_ENGINE_LOCK_ID`, `ENGINE`),\n\tKEY `BLOCKING_ENGINE_LOCK_ID` (`BLOCKING_ENGINE_LOCK_ID`, `ENGINE`),\n\tKEY `REQUESTING_ENGINE_TRANSACTION_ID` (`REQUESTING_ENGINE_TRANSACTION_ID`, `ENGINE`),\n\tKEY `BLOCKING_ENGINE_TRANSACTION_ID` (`BLOCKING_ENGINE_TRANSACTION_ID`, `ENGINE`),\n\tKEY `REQUESTING_THREAD_ID` (`REQUESTING_THREAD_ID`, `REQUESTING_EVENT_ID`),\n\tKEY `BLOCKING_THREAD_ID` (`BLOCKING_THREAD_ID`, `BLOCKING_EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String replication_applier_global_filters = "CREATE TABLE performance_schema.replication_applier_global_filters (\n\t`FILTER_NAME` char(64) NOT NULL,\n\t`FILTER_RULE` longtext NOT NULL,\n\t`CONFIGURED_BY` enum('STARTUP_OPTIONS', 'CHANGE_REPLICATION_FILTER') NOT NULL,\n\t`ACTIVE_SINCE` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000'\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String setup_consumers = "CREATE TABLE performance_schema.setup_consumers (\n\t`NAME` varchar(64) NOT NULL,\n\t`ENABLED` enum('YES', 'NO') NOT NULL,\n\tPRIMARY KEY (`NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String log_status = "CREATE TABLE performance_schema.log_status (\n\t`SERVER_UUID` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`LOCAL` json NOT NULL,\n\t`REPLICATION` json NOT NULL,\n\t`STORAGE_ENGINES` json NOT NULL\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_stages_history_long = "CREATE TABLE performance_schema.events_stages_history_long (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`WORK_COMPLETED` bigint(20) UNSIGNED DEFAULT NULL,\n\t`WORK_ESTIMATED` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String replication_applier_status = "CREATE TABLE performance_schema.replication_applier_status (\n\t`CHANNEL_NAME` char(64) NOT NULL,\n\t`SERVICE_STATE` enum('ON', 'OFF') NOT NULL,\n\t`REMAINING_DELAY` int(10) UNSIGNED DEFAULT NULL,\n\t`COUNT_TRANSACTIONS_RETRIES` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`CHANNEL_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_stages_summary_by_thread_by_event_name = "CREATE TABLE performance_schema.events_stages_summary_by_thread_by_event_name (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String variables_info = "CREATE TABLE performance_schema.variables_info (\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_SOURCE` enum('COMPILED', 'GLOBAL', 'SERVER', 'EXPLICIT', 'EXTRA', 'USER', 'LOGIN', 'COMMAND_LINE', 'PERSISTED', 'DYNAMIC') DEFAULT 'COMPILED',\n\t`VARIABLE_PATH` varchar(1024) DEFAULT NULL,\n\t`MIN_VALUE` varchar(64) DEFAULT NULL,\n\t`MAX_VALUE` varchar(64) DEFAULT NULL,\n\t`SET_TIME` timestamp(6) NULL DEFAULT NULL,\n\t`SET_USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`SET_HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String user_variables_by_thread = "CREATE TABLE performance_schema.user_variables_by_thread (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` longblob,\n\tPRIMARY KEY (`THREAD_ID`, `VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String file_instances = "CREATE TABLE performance_schema.file_instances (\n\t`FILE_NAME` varchar(512) NOT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`OPEN_COUNT` int(10) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`FILE_NAME`),\n\tKEY `EVENT_NAME` (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String replication_applier_configuration = "CREATE TABLE performance_schema.replication_applier_configuration (\n\t`CHANNEL_NAME` char(64) NOT NULL,\n\t`DESIRED_DELAY` int(11) NOT NULL,\n\tPRIMARY KEY (`CHANNEL_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_histogram_global = "CREATE TABLE performance_schema.events_statements_histogram_global (\n\t`BUCKET_NUMBER` int(10) UNSIGNED NOT NULL,\n\t`BUCKET_TIMER_LOW` bigint(20) UNSIGNED NOT NULL,\n\t`BUCKET_TIMER_HIGH` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_BUCKET` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_BUCKET_AND_LOWER` bigint(20) UNSIGNED NOT NULL,\n\t`BUCKET_QUANTILE` double(7, 6) NOT NULL,\n\tPRIMARY KEY (`BUCKET_NUMBER`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_summary_by_host_by_event_name = "CREATE TABLE performance_schema.events_statements_summary_by_host_by_event_name (\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `HOST` (`HOST`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String memory_summary_by_host_by_event_name = "CREATE TABLE performance_schema.memory_summary_by_host_by_event_name (\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_ALLOC` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_FREE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_ALLOC` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_FREE` bigint(20) UNSIGNED NOT NULL,\n\t`LOW_COUNT_USED` bigint(20) NOT NULL,\n\t`CURRENT_COUNT_USED` bigint(20) NOT NULL,\n\t`HIGH_COUNT_USED` bigint(20) NOT NULL,\n\t`LOW_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\t`CURRENT_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\t`HIGH_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\tUNIQUE KEY `HOST` (`HOST`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_waits_summary_by_thread_by_event_name = "CREATE TABLE performance_schema.events_waits_summary_by_thread_by_event_name (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_errors_summary_by_host_by_error = "CREATE TABLE performance_schema.events_errors_summary_by_host_by_error (\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`ERROR_NUMBER` int(11) DEFAULT NULL,\n\t`ERROR_NAME` varchar(64) DEFAULT NULL,\n\t`SQL_STATE` varchar(5) DEFAULT NULL,\n\t`SUM_ERROR_RAISED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERROR_HANDLED` bigint(20) UNSIGNED NOT NULL,\n\t`FIRST_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\t`LAST_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\tUNIQUE KEY `HOST` (`HOST`, `ERROR_NUMBER`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String socket_instances = "CREATE TABLE performance_schema.socket_instances (\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`SOCKET_ID` int(11) NOT NULL,\n\t`IP` varchar(64) NOT NULL,\n\t`PORT` int(11) NOT NULL,\n\t`STATE` enum('IDLE', 'ACTIVE') NOT NULL,\n\tPRIMARY KEY (`OBJECT_INSTANCE_BEGIN`),\n\tKEY `THREAD_ID` (`THREAD_ID`),\n\tKEY `SOCKET_ID` (`SOCKET_ID`),\n\tKEY `IP` (`IP`, `PORT`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_transactions_summary_by_host_by_event_name = "CREATE TABLE performance_schema.events_transactions_summary_by_host_by_event_name (\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `HOST` (`HOST`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String replication_connection_status = "CREATE TABLE performance_schema.replication_connection_status (\n\t`CHANNEL_NAME` char(64) NOT NULL,\n\t`GROUP_NAME` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`SOURCE_UUID` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`SERVICE_STATE` enum('ON', 'OFF', 'CONNECTING') NOT NULL,\n\t`COUNT_RECEIVED_HEARTBEATS` bigint(20) UNSIGNED NOT NULL DEFAULT '0',\n\t`LAST_HEARTBEAT_TIMESTAMP` timestamp(6) NOT NULL COMMENT 'Shows when the most recent heartbeat signal was received.',\n\t`RECEIVED_TRANSACTION_SET` longtext NOT NULL,\n\t`LAST_ERROR_NUMBER` int(11) NOT NULL,\n\t`LAST_ERROR_MESSAGE` varchar(1024) NOT NULL,\n\t`LAST_ERROR_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_QUEUED_TRANSACTION` char(57) DEFAULT NULL,\n\t`LAST_QUEUED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_QUEUED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_QUEUED_TRANSACTION_START_QUEUE_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_QUEUED_TRANSACTION_END_QUEUE_TIMESTAMP` timestamp(6) NOT NULL,\n\t`QUEUEING_TRANSACTION` char(57) DEFAULT NULL,\n\t`QUEUEING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`QUEUEING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`QUEUEING_TRANSACTION_START_QUEUE_TIMESTAMP` timestamp(6) NOT NULL,\n\tPRIMARY KEY (`CHANNEL_NAME`),\n\tKEY `THREAD_ID` (`THREAD_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String replication_applier_filters = "CREATE TABLE performance_schema.replication_applier_filters (\n\t`CHANNEL_NAME` char(64) NOT NULL,\n\t`FILTER_NAME` char(64) NOT NULL,\n\t`FILTER_RULE` longtext NOT NULL,\n\t`CONFIGURED_BY` enum('STARTUP_OPTIONS', 'CHANGE_REPLICATION_FILTER', 'STARTUP_OPTIONS_FOR_CHANNEL', 'CHANGE_REPLICATION_FILTER_FOR_CHANNEL') NOT NULL,\n\t`ACTIVE_SINCE` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000',\n\t`COUNTER` bigint(20) UNSIGNED NOT NULL DEFAULT '0'\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String session_variables = "CREATE TABLE performance_schema.session_variables (\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` varchar(1024) DEFAULT NULL,\n\tPRIMARY KEY (`VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String replication_connection_configuration = "CREATE TABLE performance_schema.replication_connection_configuration (\n\t`CHANNEL_NAME` char(64) NOT NULL,\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`PORT` int(11) NOT NULL,\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`NETWORK_INTERFACE` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`AUTO_POSITION` enum('1', '0') NOT NULL,\n\t`SSL_ALLOWED` enum('YES', 'NO', 'IGNORED') NOT NULL,\n\t`SSL_CA_FILE` varchar(512) NOT NULL,\n\t`SSL_CA_PATH` varchar(512) NOT NULL,\n\t`SSL_CERTIFICATE` varchar(512) NOT NULL,\n\t`SSL_CIPHER` varchar(512) NOT NULL,\n\t`SSL_KEY` varchar(512) NOT NULL,\n\t`SSL_VERIFY_SERVER_CERTIFICATE` enum('YES', 'NO') NOT NULL,\n\t`SSL_CRL_FILE` varchar(255) NOT NULL,\n\t`SSL_CRL_PATH` varchar(255) NOT NULL,\n\t`CONNECTION_RETRY_INTERVAL` int(11) NOT NULL,\n\t`CONNECTION_RETRY_COUNT` bigint(20) UNSIGNED NOT NULL,\n\t`HEARTBEAT_INTERVAL` double(10, 3) UNSIGNED NOT NULL COMMENT 'Number of seconds after which a heartbeat will be sent .',\n\t`TLS_VERSION` varchar(255) NOT NULL,\n\t`PUBLIC_KEY_PATH` varchar(512) NOT NULL,\n\t`GET_PUBLIC_KEY` enum('YES', 'NO') NOT NULL,\n\tPRIMARY KEY (`CHANNEL_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String prepared_statements_instances = "CREATE TABLE performance_schema.prepared_statements_instances (\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`STATEMENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`STATEMENT_NAME` varchar(64) DEFAULT NULL,\n\t`SQL_TEXT` longtext NOT NULL,\n\t`OWNER_THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`OWNER_EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`OWNER_OBJECT_TYPE` enum('EVENT', 'FUNCTION', 'PROCEDURE', 'TABLE', 'TRIGGER') DEFAULT NULL,\n\t`OWNER_OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OWNER_OBJECT_NAME` varchar(64) DEFAULT NULL,\n\t`TIMER_PREPARE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_REPREPARE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_EXECUTE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_EXECUTE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_EXECUTE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_EXECUTE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_EXECUTE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`OBJECT_INSTANCE_BEGIN`),\n\tUNIQUE KEY `OWNER_THREAD_ID` (`OWNER_THREAD_ID`, `OWNER_EVENT_ID`),\n\tKEY `STATEMENT_ID` (`STATEMENT_ID`),\n\tKEY `STATEMENT_NAME` (`STATEMENT_NAME`),\n\tKEY `OWNER_OBJECT_TYPE` (`OWNER_OBJECT_TYPE`, `OWNER_OBJECT_SCHEMA`, `OWNER_OBJECT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String global_variables = "CREATE TABLE performance_schema.global_variables (\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` varchar(1024) DEFAULT NULL,\n\tPRIMARY KEY (`VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_errors_summary_by_account_by_error = "CREATE TABLE performance_schema.events_errors_summary_by_account_by_error (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`ERROR_NUMBER` int(11) DEFAULT NULL,\n\t`ERROR_NAME` varchar(64) DEFAULT NULL,\n\t`SQL_STATE` varchar(5) DEFAULT NULL,\n\t`SUM_ERROR_RAISED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERROR_HANDLED` bigint(20) UNSIGNED NOT NULL,\n\t`FIRST_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\t`LAST_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\tUNIQUE KEY `ACCOUNT` (`USER`, `HOST`, `ERROR_NUMBER`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String replication_group_members = "CREATE TABLE performance_schema.replication_group_members (\n\t`CHANNEL_NAME` char(64) NOT NULL,\n\t`MEMBER_ID` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`MEMBER_HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`MEMBER_PORT` int(11) DEFAULT NULL,\n\t`MEMBER_STATE` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`MEMBER_ROLE` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,\n\t`MEMBER_VERSION` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_transactions_current = "CREATE TABLE performance_schema.events_transactions_current (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`STATE` enum('ACTIVE', 'COMMITTED', 'ROLLED BACK') DEFAULT NULL,\n\t`TRX_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`GTID` varchar(64) DEFAULT NULL,\n\t`XID_FORMAT_ID` int(11) DEFAULT NULL,\n\t`XID_GTRID` varchar(130) DEFAULT NULL,\n\t`XID_BQUAL` varchar(130) DEFAULT NULL,\n\t`XA_STATE` varchar(64) DEFAULT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`ACCESS_MODE` enum('READ ONLY', 'READ WRITE') DEFAULT NULL,\n\t`ISOLATION_LEVEL` varchar(64) DEFAULT NULL,\n\t`AUTOCOMMIT` enum('YES', 'NO') NOT NULL,\n\t`NUMBER_OF_SAVEPOINTS` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NUMBER_OF_ROLLBACK_TO_SAVEPOINT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NUMBER_OF_RELEASE_SAVEPOINT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String rwlock_instances = "CREATE TABLE performance_schema.rwlock_instances (\n\t`NAME` varchar(128) NOT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`WRITE_LOCKED_BY_THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`READ_LOCKED_BY_COUNT` int(10) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`OBJECT_INSTANCE_BEGIN`),\n\tKEY `NAME` (`NAME`),\n\tKEY `WRITE_LOCKED_BY_THREAD_ID` (`WRITE_LOCKED_BY_THREAD_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_history_long = "CREATE TABLE performance_schema.events_statements_history_long (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SQL_TEXT` longtext,\n\t`DIGEST` varchar(64) DEFAULT NULL,\n\t`DIGEST_TEXT` longtext,\n\t`CURRENT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_TYPE` varchar(64) DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(64) DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED DEFAULT NULL,\n\t`MYSQL_ERRNO` int(11) DEFAULT NULL,\n\t`RETURNED_SQLSTATE` varchar(5) DEFAULT NULL,\n\t`MESSAGE_TEXT` varchar(128) DEFAULT NULL,\n\t`ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL,\n\t`NESTING_EVENT_LEVEL` int(11) DEFAULT NULL\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String memory_summary_by_account_by_event_name = "CREATE TABLE performance_schema.memory_summary_by_account_by_event_name (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_ALLOC` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_FREE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_ALLOC` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_FREE` bigint(20) UNSIGNED NOT NULL,\n\t`LOW_COUNT_USED` bigint(20) NOT NULL,\n\t`CURRENT_COUNT_USED` bigint(20) NOT NULL,\n\t`HIGH_COUNT_USED` bigint(20) NOT NULL,\n\t`LOW_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\t`CURRENT_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\t`HIGH_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\tUNIQUE KEY `ACCOUNT` (`USER`, `HOST`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_summary_by_digest = "CREATE TABLE performance_schema.events_statements_summary_by_digest (\n\t`SCHEMA_NAME` varchar(64) DEFAULT NULL,\n\t`DIGEST` varchar(64) DEFAULT NULL,\n\t`DIGEST_TEXT` longtext,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`FIRST_SEEN` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000',\n\t`LAST_SEEN` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000',\n\t`QUANTILE_95` bigint(20) UNSIGNED NOT NULL,\n\t`QUANTILE_99` bigint(20) UNSIGNED NOT NULL,\n\t`QUANTILE_999` bigint(20) UNSIGNED NOT NULL,\n\t`QUERY_SAMPLE_TEXT` longtext,\n\t`QUERY_SAMPLE_SEEN` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000',\n\t`QUERY_SAMPLE_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `SCHEMA_NAME` (`SCHEMA_NAME`, `DIGEST`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String accounts = "CREATE TABLE performance_schema.accounts (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`CURRENT_CONNECTIONS` bigint(20) NOT NULL,\n\t`TOTAL_CONNECTIONS` bigint(20) NOT NULL,\n\tUNIQUE KEY `ACCOUNT` (`USER`, `HOST`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_waits_summary_by_account_by_event_name = "CREATE TABLE performance_schema.events_waits_summary_by_account_by_event_name (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `ACCOUNT` (`USER`, `HOST`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_stages_summary_by_account_by_event_name = "CREATE TABLE performance_schema.events_stages_summary_by_account_by_event_name (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `ACCOUNT` (`USER`, `HOST`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_waits_summary_by_user_by_event_name = "CREATE TABLE performance_schema.events_waits_summary_by_user_by_event_name (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `USER` (`USER`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_transactions_summary_by_account_by_event_name = "CREATE TABLE performance_schema.events_transactions_summary_by_account_by_event_name (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `ACCOUNT` (`USER`, `HOST`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_transactions_history = "CREATE TABLE performance_schema.events_transactions_history (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`STATE` enum('ACTIVE', 'COMMITTED', 'ROLLED BACK') DEFAULT NULL,\n\t`TRX_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`GTID` varchar(64) DEFAULT NULL,\n\t`XID_FORMAT_ID` int(11) DEFAULT NULL,\n\t`XID_GTRID` varchar(130) DEFAULT NULL,\n\t`XID_BQUAL` varchar(130) DEFAULT NULL,\n\t`XA_STATE` varchar(64) DEFAULT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`ACCESS_MODE` enum('READ ONLY', 'READ WRITE') DEFAULT NULL,\n\t`ISOLATION_LEVEL` varchar(64) DEFAULT NULL,\n\t`AUTOCOMMIT` enum('YES', 'NO') NOT NULL,\n\t`NUMBER_OF_SAVEPOINTS` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NUMBER_OF_ROLLBACK_TO_SAVEPOINT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NUMBER_OF_RELEASE_SAVEPOINT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_stages_summary_by_host_by_event_name = "CREATE TABLE performance_schema.events_stages_summary_by_host_by_event_name (\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `HOST` (`HOST`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String host_cache = "CREATE TABLE performance_schema.host_cache (\n\t`IP` varchar(64) NOT NULL,\n\t`HOST` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`HOST_VALIDATED` enum('YES', 'NO') NOT NULL,\n\t`SUM_CONNECT_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_HOST_BLOCKED_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_NAMEINFO_TRANSIENT_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_NAMEINFO_PERMANENT_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_FORMAT_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_ADDRINFO_TRANSIENT_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_ADDRINFO_PERMANENT_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_FCRDNS_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_HOST_ACL_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_NO_AUTH_PLUGIN_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_AUTH_PLUGIN_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_HANDSHAKE_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_PROXY_USER_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_PROXY_USER_ACL_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_AUTHENTICATION_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_SSL_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_MAX_USER_CONNECTIONS_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_DEFAULT_DATABASE_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_INIT_CONNECT_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_LOCAL_ERRORS` bigint(20) NOT NULL,\n\t`COUNT_UNKNOWN_ERRORS` bigint(20) NOT NULL,\n\t`FIRST_SEEN` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',\n\t`LAST_SEEN` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',\n\t`FIRST_ERROR_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\t`LAST_ERROR_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\tPRIMARY KEY (`IP`),\n\tKEY `HOST` (`HOST`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_waits_current = "CREATE TABLE performance_schema.events_waits_current (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`SPINS` int(10) UNSIGNED DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(512) DEFAULT NULL,\n\t`INDEX_NAME` varchar(64) DEFAULT NULL,\n\t`OBJECT_TYPE` varchar(64) DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL,\n\t`OPERATION` varchar(32) NOT NULL,\n\t`NUMBER_OF_BYTES` bigint(20) DEFAULT NULL,\n\t`FLAGS` int(10) UNSIGNED DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String setup_actors = "CREATE TABLE performance_schema.setup_actors (\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '%',\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '%',\n\t`ROLE` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '%',\n\t`ENABLED` enum('YES', 'NO') NOT NULL DEFAULT 'YES',\n\t`HISTORY` enum('YES', 'NO') NOT NULL DEFAULT 'YES',\n\tPRIMARY KEY (`HOST`, `USER`, `ROLE`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String table_io_waits_summary_by_table = "CREATE TABLE performance_schema.table_io_waits_summary_by_table (\n\t`OBJECT_TYPE` varchar(64) DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(64) DEFAULT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_FETCH` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_FETCH` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_FETCH` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_FETCH` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_FETCH` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_UPDATE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_UPDATE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_UPDATE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_UPDATE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_UPDATE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_DELETE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_DELETE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_DELETE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_DELETE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_DELETE` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `OBJECT` (`OBJECT_TYPE`, `OBJECT_SCHEMA`, `OBJECT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String status_by_host = "CREATE TABLE performance_schema.status_by_host (\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` varchar(1024) DEFAULT NULL,\n\tUNIQUE KEY `HOST` (`HOST`, `VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String memory_summary_global_by_event_name = "CREATE TABLE performance_schema.memory_summary_global_by_event_name (\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_ALLOC` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_FREE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_ALLOC` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_FREE` bigint(20) UNSIGNED NOT NULL,\n\t`LOW_COUNT_USED` bigint(20) NOT NULL,\n\t`CURRENT_COUNT_USED` bigint(20) NOT NULL,\n\t`HIGH_COUNT_USED` bigint(20) NOT NULL,\n\t`LOW_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\t`CURRENT_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\t`HIGH_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\tPRIMARY KEY (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String session_connect_attrs = "CREATE TABLE performance_schema.session_connect_attrs (\n\t`PROCESSLIST_ID` bigint(20) UNSIGNED NOT NULL,\n\t`ATTR_NAME` varchar(32) COLLATE utf8mb4_bin NOT NULL,\n\t`ATTR_VALUE` varchar(1024) COLLATE utf8mb4_bin DEFAULT NULL,\n\t`ORDINAL_POSITION` int(11) DEFAULT NULL,\n\tPRIMARY KEY (`PROCESSLIST_ID`, `ATTR_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_bin";
    public static String cond_instances = "CREATE TABLE performance_schema.cond_instances (\n\t`NAME` varchar(128) NOT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`OBJECT_INSTANCE_BEGIN`),\n\tKEY `NAME` (`NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String status_by_thread = "CREATE TABLE performance_schema.status_by_thread (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` varchar(1024) DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_transactions_history_long = "CREATE TABLE performance_schema.events_transactions_history_long (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`STATE` enum('ACTIVE', 'COMMITTED', 'ROLLED BACK') DEFAULT NULL,\n\t`TRX_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`GTID` varchar(64) DEFAULT NULL,\n\t`XID_FORMAT_ID` int(11) DEFAULT NULL,\n\t`XID_GTRID` varchar(130) DEFAULT NULL,\n\t`XID_BQUAL` varchar(130) DEFAULT NULL,\n\t`XA_STATE` varchar(64) DEFAULT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`ACCESS_MODE` enum('READ ONLY', 'READ WRITE') DEFAULT NULL,\n\t`ISOLATION_LEVEL` varchar(64) DEFAULT NULL,\n\t`AUTOCOMMIT` enum('YES', 'NO') NOT NULL,\n\t`NUMBER_OF_SAVEPOINTS` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NUMBER_OF_ROLLBACK_TO_SAVEPOINT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NUMBER_OF_RELEASE_SAVEPOINT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_current = "CREATE TABLE performance_schema.events_statements_current (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SQL_TEXT` longtext,\n\t`DIGEST` varchar(64) DEFAULT NULL,\n\t`DIGEST_TEXT` longtext,\n\t`CURRENT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_TYPE` varchar(64) DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(64) DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED DEFAULT NULL,\n\t`MYSQL_ERRNO` int(11) DEFAULT NULL,\n\t`RETURNED_SQLSTATE` varchar(5) DEFAULT NULL,\n\t`MESSAGE_TEXT` varchar(128) DEFAULT NULL,\n\t`ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL,\n\t`NESTING_EVENT_LEVEL` int(11) DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_history = "CREATE TABLE performance_schema.events_statements_history (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SQL_TEXT` longtext,\n\t`DIGEST` varchar(64) DEFAULT NULL,\n\t`DIGEST_TEXT` longtext,\n\t`CURRENT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_TYPE` varchar(64) DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(64) DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED DEFAULT NULL,\n\t`MYSQL_ERRNO` int(11) DEFAULT NULL,\n\t`RETURNED_SQLSTATE` varchar(5) DEFAULT NULL,\n\t`MESSAGE_TEXT` varchar(128) DEFAULT NULL,\n\t`ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL,\n\t`NESTING_EVENT_LEVEL` int(11) DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String persisted_variables = "CREATE TABLE performance_schema.persisted_variables (\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` varchar(1024) DEFAULT NULL,\n\tPRIMARY KEY (`VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String users = "CREATE TABLE performance_schema.users (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`CURRENT_CONNECTIONS` bigint(20) NOT NULL,\n\t`TOTAL_CONNECTIONS` bigint(20) NOT NULL,\n\tUNIQUE KEY `USER` (`USER`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_summary_global_by_event_name = "CREATE TABLE performance_schema.events_statements_summary_global_by_event_name (\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String session_account_connect_attrs = "CREATE TABLE performance_schema.session_account_connect_attrs (\n\t`PROCESSLIST_ID` bigint(20) UNSIGNED NOT NULL,\n\t`ATTR_NAME` varchar(32) COLLATE utf8mb4_bin NOT NULL,\n\t`ATTR_VALUE` varchar(1024) COLLATE utf8mb4_bin DEFAULT NULL,\n\t`ORDINAL_POSITION` int(11) DEFAULT NULL,\n\tPRIMARY KEY (`PROCESSLIST_ID`, `ATTR_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_bin";
    public static String socket_summary_by_instance = "CREATE TABLE performance_schema.socket_summary_by_instance (\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_READ` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`OBJECT_INSTANCE_BEGIN`),\n\tKEY `EVENT_NAME` (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String variables_by_thread = "CREATE TABLE performance_schema.variables_by_thread (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` varchar(1024) DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_summary_by_program = "CREATE TABLE performance_schema.events_statements_summary_by_program (\n\t`OBJECT_TYPE` enum('EVENT', 'FUNCTION', 'PROCEDURE', 'TABLE', 'TRIGGER') NOT NULL,\n\t`OBJECT_SCHEMA` varchar(64) NOT NULL,\n\t`OBJECT_NAME` varchar(64) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_STATEMENTS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_STATEMENTS_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_STATEMENTS_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_STATEMENTS_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_STATEMENTS_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`OBJECT_TYPE`, `OBJECT_SCHEMA`, `OBJECT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String memory_summary_by_thread_by_event_name = "CREATE TABLE performance_schema.memory_summary_by_thread_by_event_name (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_ALLOC` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_FREE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_ALLOC` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_FREE` bigint(20) UNSIGNED NOT NULL,\n\t`LOW_COUNT_USED` bigint(20) NOT NULL,\n\t`CURRENT_COUNT_USED` bigint(20) NOT NULL,\n\t`HIGH_COUNT_USED` bigint(20) NOT NULL,\n\t`LOW_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\t`CURRENT_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\t`HIGH_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_summary_by_account_by_event_name = "CREATE TABLE performance_schema.events_statements_summary_by_account_by_event_name (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `ACCOUNT` (`USER`, `HOST`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String status_by_user = "CREATE TABLE performance_schema.status_by_user (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` varchar(1024) DEFAULT NULL,\n\tUNIQUE KEY `USER` (`USER`, `VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_waits_summary_global_by_event_name = "CREATE TABLE performance_schema.events_waits_summary_global_by_event_name (\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String replication_applier_status_by_worker = "CREATE TABLE performance_schema.replication_applier_status_by_worker (\n\t`CHANNEL_NAME` char(64) NOT NULL,\n\t`WORKER_ID` bigint(20) UNSIGNED NOT NULL,\n\t`THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`SERVICE_STATE` enum('ON', 'OFF') NOT NULL,\n\t`LAST_ERROR_NUMBER` int(11) NOT NULL,\n\t`LAST_ERROR_MESSAGE` varchar(1024) NOT NULL,\n\t`LAST_ERROR_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_APPLIED_TRANSACTION` char(57) DEFAULT NULL,\n\t`LAST_APPLIED_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_APPLIED_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_APPLIED_TRANSACTION_START_APPLY_TIMESTAMP` timestamp(6) NOT NULL,\n\t`LAST_APPLIED_TRANSACTION_END_APPLY_TIMESTAMP` timestamp(6) NOT NULL,\n\t`APPLYING_TRANSACTION` char(57) DEFAULT NULL,\n\t`APPLYING_TRANSACTION_ORIGINAL_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`APPLYING_TRANSACTION_IMMEDIATE_COMMIT_TIMESTAMP` timestamp(6) NOT NULL,\n\t`APPLYING_TRANSACTION_START_APPLY_TIMESTAMP` timestamp(6) NOT NULL,\n\tPRIMARY KEY (`CHANNEL_NAME`, `WORKER_ID`),\n\tKEY `THREAD_ID` (`THREAD_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String status_by_account = "CREATE TABLE performance_schema.status_by_account (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`HOST` char(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`VARIABLE_NAME` varchar(64) NOT NULL,\n\t`VARIABLE_VALUE` varchar(1024) DEFAULT NULL,\n\tUNIQUE KEY `ACCOUNT` (`USER`, `HOST`, `VARIABLE_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String setup_instruments = "CREATE TABLE performance_schema.setup_instruments (\n\t`NAME` varchar(128) NOT NULL,\n\t`ENABLED` enum('YES', 'NO') NOT NULL,\n\t`TIMED` enum('YES', 'NO') DEFAULT NULL,\n\t`PROPERTIES` set('singleton', 'progress', 'user', 'global_statistics', 'mutable') NOT NULL,\n\t`VOLATILITY` int(11) NOT NULL,\n\t`DOCUMENTATION` longtext,\n\tPRIMARY KEY (`NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String table_handles = "CREATE TABLE performance_schema.table_handles (\n\t`OBJECT_TYPE` varchar(64) NOT NULL,\n\t`OBJECT_SCHEMA` varchar(64) NOT NULL,\n\t`OBJECT_NAME` varchar(64) NOT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`OWNER_THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`OWNER_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`INTERNAL_LOCK` varchar(64) DEFAULT NULL,\n\t`EXTERNAL_LOCK` varchar(64) DEFAULT NULL,\n\tPRIMARY KEY (`OBJECT_INSTANCE_BEGIN`),\n\tKEY `OBJECT_TYPE` (`OBJECT_TYPE`, `OBJECT_SCHEMA`, `OBJECT_NAME`),\n\tKEY `OWNER_THREAD_ID` (`OWNER_THREAD_ID`, `OWNER_EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_summary_by_user_by_event_name = "CREATE TABLE performance_schema.events_statements_summary_by_user_by_event_name (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `USER` (`USER`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_summary_by_thread_by_event_name = "CREATE TABLE performance_schema.events_statements_summary_by_thread_by_event_name (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_LOCK_TIME` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERRORS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_WARNINGS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_AFFECTED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_SENT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ROWS_EXAMINED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_DISK_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_CREATED_TMP_TABLES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_FULL_RANGE_JOIN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_RANGE_CHECK` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SELECT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_MERGE_PASSES` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_RANGE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_ROWS` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_SORT_SCAN` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NO_GOOD_INDEX_USED` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String memory_summary_by_user_by_event_name = "CREATE TABLE performance_schema.memory_summary_by_user_by_event_name (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_ALLOC` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_FREE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_ALLOC` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_FREE` bigint(20) UNSIGNED NOT NULL,\n\t`LOW_COUNT_USED` bigint(20) NOT NULL,\n\t`CURRENT_COUNT_USED` bigint(20) NOT NULL,\n\t`HIGH_COUNT_USED` bigint(20) NOT NULL,\n\t`LOW_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\t`CURRENT_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\t`HIGH_NUMBER_OF_BYTES_USED` bigint(20) NOT NULL,\n\tUNIQUE KEY `USER` (`USER`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String file_summary_by_instance = "CREATE TABLE performance_schema.file_summary_by_instance (\n\t`FILE_NAME` varchar(512) NOT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_READ` bigint(20) NOT NULL,\n\t`COUNT_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_NUMBER_OF_BYTES_WRITE` bigint(20) NOT NULL,\n\t`COUNT_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_MISC` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`OBJECT_INSTANCE_BEGIN`),\n\tKEY `FILE_NAME` (`FILE_NAME`),\n\tKEY `EVENT_NAME` (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_stages_history = "CREATE TABLE performance_schema.events_stages_history (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`WORK_COMPLETED` bigint(20) UNSIGNED DEFAULT NULL,\n\t`WORK_ESTIMATED` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String mutex_instances = "CREATE TABLE performance_schema.mutex_instances (\n\t`NAME` varchar(128) NOT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`LOCKED_BY_THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\tPRIMARY KEY (`OBJECT_INSTANCE_BEGIN`),\n\tKEY `NAME` (`NAME`),\n\tKEY `LOCKED_BY_THREAD_ID` (`LOCKED_BY_THREAD_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_transactions_summary_by_thread_by_event_name = "CREATE TABLE performance_schema.events_transactions_summary_by_thread_by_event_name (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_transactions_summary_by_user_by_event_name = "CREATE TABLE performance_schema.events_transactions_summary_by_user_by_event_name (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ_ONLY` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `USER` (`USER`, `EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_stages_current = "CREATE TABLE performance_schema.events_stages_current (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`WORK_COMPLETED` bigint(20) UNSIGNED DEFAULT NULL,\n\t`WORK_ESTIMATED` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String user_defined_functions = "CREATE TABLE performance_schema.user_defined_functions (\n\t`UDF_NAME` varchar(64) NOT NULL,\n\t`UDF_RETURN_TYPE` varchar(20) NOT NULL,\n\t`UDF_TYPE` varchar(20) NOT NULL,\n\t`UDF_LIBRARY` varchar(1024) DEFAULT NULL,\n\t`UDF_USAGE_COUNT` bigint(20) DEFAULT NULL,\n\tPRIMARY KEY (`UDF_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String setup_objects = "CREATE TABLE performance_schema.setup_objects (\n\t`OBJECT_TYPE` enum('EVENT', 'FUNCTION', 'PROCEDURE', 'TABLE', 'TRIGGER') NOT NULL DEFAULT 'TABLE',\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT '%',\n\t`OBJECT_NAME` varchar(64) NOT NULL DEFAULT '%',\n\t`ENABLED` enum('YES', 'NO') NOT NULL DEFAULT 'YES',\n\t`TIMED` enum('YES', 'NO') NOT NULL DEFAULT 'YES',\n\tUNIQUE KEY `OBJECT` (`OBJECT_TYPE`, `OBJECT_SCHEMA`, `OBJECT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_errors_summary_by_user_by_error = "CREATE TABLE performance_schema.events_errors_summary_by_user_by_error (\n\t`USER` char(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,\n\t`ERROR_NUMBER` int(11) DEFAULT NULL,\n\t`ERROR_NAME` varchar(64) DEFAULT NULL,\n\t`SQL_STATE` varchar(5) DEFAULT NULL,\n\t`SUM_ERROR_RAISED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERROR_HANDLED` bigint(20) UNSIGNED NOT NULL,\n\t`FIRST_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\t`LAST_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\tUNIQUE KEY `USER` (`USER`, `ERROR_NUMBER`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String threads = "CREATE TABLE performance_schema.threads (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`NAME` varchar(128) NOT NULL,\n\t`TYPE` varchar(10) NOT NULL,\n\t`PROCESSLIST_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`PROCESSLIST_USER` varchar(32) DEFAULT NULL,\n\t`PROCESSLIST_HOST` varchar(60) DEFAULT NULL,\n\t`PROCESSLIST_DB` varchar(64) DEFAULT NULL,\n\t`PROCESSLIST_COMMAND` varchar(16) DEFAULT NULL,\n\t`PROCESSLIST_TIME` bigint(20) DEFAULT NULL,\n\t`PROCESSLIST_STATE` varchar(64) DEFAULT NULL,\n\t`PROCESSLIST_INFO` longtext,\n\t`PARENT_THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`ROLE` varchar(64) DEFAULT NULL,\n\t`INSTRUMENTED` enum('YES', 'NO') NOT NULL,\n\t`HISTORY` enum('YES', 'NO') NOT NULL,\n\t`CONNECTION_TYPE` varchar(16) DEFAULT NULL,\n\t`THREAD_OS_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`RESOURCE_GROUP` varchar(64) DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`),\n\tKEY `PROCESSLIST_ID` (`PROCESSLIST_ID`),\n\tKEY `THREAD_OS_ID` (`THREAD_OS_ID`),\n\tKEY `NAME` (`NAME`),\n\tKEY `PROCESSLIST_ACCOUNT` (`PROCESSLIST_USER`, `PROCESSLIST_HOST`),\n\tKEY `PROCESSLIST_HOST` (`PROCESSLIST_HOST`),\n\tKEY `RESOURCE_GROUP` (`RESOURCE_GROUP`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_waits_summary_by_instance = "CREATE TABLE performance_schema.events_waits_summary_by_instance (\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`OBJECT_INSTANCE_BEGIN`),\n\tKEY `EVENT_NAME` (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_waits_history_long = "CREATE TABLE performance_schema.events_waits_history_long (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`SPINS` int(10) UNSIGNED DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(512) DEFAULT NULL,\n\t`INDEX_NAME` varchar(64) DEFAULT NULL,\n\t`OBJECT_TYPE` varchar(64) DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL,\n\t`OPERATION` varchar(32) NOT NULL,\n\t`NUMBER_OF_BYTES` bigint(20) DEFAULT NULL,\n\t`FLAGS` int(10) UNSIGNED DEFAULT NULL\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String objects_summary_global_by_type = "CREATE TABLE performance_schema.objects_summary_global_by_type (\n\t`OBJECT_TYPE` varchar(64) DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(64) DEFAULT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `OBJECT` (`OBJECT_TYPE`, `OBJECT_SCHEMA`, `OBJECT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_statements_histogram_by_digest = "CREATE TABLE performance_schema.events_statements_histogram_by_digest (\n\t`SCHEMA_NAME` varchar(64) DEFAULT NULL,\n\t`DIGEST` varchar(64) DEFAULT NULL,\n\t`BUCKET_NUMBER` int(10) UNSIGNED NOT NULL,\n\t`BUCKET_TIMER_LOW` bigint(20) UNSIGNED NOT NULL,\n\t`BUCKET_TIMER_HIGH` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_BUCKET` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_BUCKET_AND_LOWER` bigint(20) UNSIGNED NOT NULL,\n\t`BUCKET_QUANTILE` double(7, 6) NOT NULL,\n\tUNIQUE KEY `SCHEMA_NAME` (`SCHEMA_NAME`, `DIGEST`, `BUCKET_NUMBER`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String table_io_waits_summary_by_index_usage = "CREATE TABLE performance_schema.table_io_waits_summary_by_index_usage (\n\t`OBJECT_TYPE` varchar(64) DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(64) DEFAULT NULL,\n\t`INDEX_NAME` varchar(64) DEFAULT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_READ` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_READ` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WRITE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_FETCH` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_FETCH` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_FETCH` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_FETCH` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_FETCH` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_INSERT` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_UPDATE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_UPDATE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_UPDATE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_UPDATE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_UPDATE` bigint(20) UNSIGNED NOT NULL,\n\t`COUNT_DELETE` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_DELETE` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_DELETE` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_DELETE` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_DELETE` bigint(20) UNSIGNED NOT NULL,\n\tUNIQUE KEY `OBJECT` (`OBJECT_TYPE`, `OBJECT_SCHEMA`, `OBJECT_NAME`, `INDEX_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_waits_history = "CREATE TABLE performance_schema.events_waits_history (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED NOT NULL,\n\t`END_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`TIMER_START` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_END` bigint(20) UNSIGNED DEFAULT NULL,\n\t`TIMER_WAIT` bigint(20) UNSIGNED DEFAULT NULL,\n\t`SPINS` int(10) UNSIGNED DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(512) DEFAULT NULL,\n\t`INDEX_NAME` varchar(64) DEFAULT NULL,\n\t`OBJECT_TYPE` varchar(64) DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`NESTING_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`NESTING_EVENT_TYPE` enum('TRANSACTION', 'STATEMENT', 'STAGE', 'WAIT') DEFAULT NULL,\n\t`OPERATION` varchar(32) NOT NULL,\n\t`NUMBER_OF_BYTES` bigint(20) DEFAULT NULL,\n\t`FLAGS` int(10) UNSIGNED DEFAULT NULL,\n\tPRIMARY KEY (`THREAD_ID`, `EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String metadata_locks = "CREATE TABLE performance_schema.metadata_locks (\n\t`OBJECT_TYPE` varchar(64) NOT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(64) DEFAULT NULL,\n\t`COLUMN_NAME` varchar(64) DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`LOCK_TYPE` varchar(32) NOT NULL,\n\t`LOCK_DURATION` varchar(32) NOT NULL,\n\t`LOCK_STATUS` varchar(32) NOT NULL,\n\t`SOURCE` varchar(64) DEFAULT NULL,\n\t`OWNER_THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`OWNER_EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\tPRIMARY KEY (`OBJECT_INSTANCE_BEGIN`),\n\tKEY `OBJECT_TYPE` (`OBJECT_TYPE`, `OBJECT_SCHEMA`, `OBJECT_NAME`, `COLUMN_NAME`),\n\tKEY `OWNER_THREAD_ID` (`OWNER_THREAD_ID`, `OWNER_EVENT_ID`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String data_locks = "CREATE TABLE performance_schema.data_locks (\n\t`ENGINE` varchar(32) NOT NULL,\n\t`ENGINE_LOCK_ID` varchar(128) NOT NULL,\n\t`ENGINE_TRANSACTION_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`THREAD_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`EVENT_ID` bigint(20) UNSIGNED DEFAULT NULL,\n\t`OBJECT_SCHEMA` varchar(64) DEFAULT NULL,\n\t`OBJECT_NAME` varchar(64) DEFAULT NULL,\n\t`PARTITION_NAME` varchar(64) DEFAULT NULL,\n\t`SUBPARTITION_NAME` varchar(64) DEFAULT NULL,\n\t`INDEX_NAME` varchar(64) DEFAULT NULL,\n\t`OBJECT_INSTANCE_BEGIN` bigint(20) UNSIGNED NOT NULL,\n\t`LOCK_TYPE` varchar(32) NOT NULL,\n\t`LOCK_MODE` varchar(32) NOT NULL,\n\t`LOCK_STATUS` varchar(32) NOT NULL,\n\t`LOCK_DATA` varchar(8192) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,\n\tPRIMARY KEY (`ENGINE_LOCK_ID`, `ENGINE`),\n\tKEY `ENGINE_TRANSACTION_ID` (`ENGINE_TRANSACTION_ID`, `ENGINE`),\n\tKEY `THREAD_ID` (`THREAD_ID`, `EVENT_ID`),\n\tKEY `OBJECT_SCHEMA` (`OBJECT_SCHEMA`, `OBJECT_NAME`, `PARTITION_NAME`, `SUBPARTITION_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_stages_summary_global_by_event_name = "CREATE TABLE performance_schema.events_stages_summary_global_by_event_name (\n\t`EVENT_NAME` varchar(128) NOT NULL,\n\t`COUNT_STAR` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MIN_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`AVG_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\t`MAX_TIMER_WAIT` bigint(20) UNSIGNED NOT NULL,\n\tPRIMARY KEY (`EVENT_NAME`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_errors_summary_by_thread_by_error = "CREATE TABLE performance_schema.events_errors_summary_by_thread_by_error (\n\t`THREAD_ID` bigint(20) UNSIGNED NOT NULL,\n\t`ERROR_NUMBER` int(11) DEFAULT NULL,\n\t`ERROR_NAME` varchar(64) DEFAULT NULL,\n\t`SQL_STATE` varchar(5) DEFAULT NULL,\n\t`SUM_ERROR_RAISED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERROR_HANDLED` bigint(20) UNSIGNED NOT NULL,\n\t`FIRST_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\t`LAST_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\tUNIQUE KEY `THREAD_ID` (`THREAD_ID`, `ERROR_NUMBER`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String performance_timers = "CREATE TABLE performance_schema.performance_timers (\n\t`TIMER_NAME` enum('CYCLE', 'NANOSECOND', 'MICROSECOND', 'MILLISECOND') NOT NULL,\n\t`TIMER_FREQUENCY` bigint(20) DEFAULT NULL,\n\t`TIMER_RESOLUTION` bigint(20) DEFAULT NULL,\n\t`TIMER_OVERHEAD` bigint(20) DEFAULT NULL\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";
    public static String events_errors_summary_global_by_error = "CREATE TABLE performance_schema.events_errors_summary_global_by_error (\n\t`ERROR_NUMBER` int(11) DEFAULT NULL,\n\t`ERROR_NAME` varchar(64) DEFAULT NULL,\n\t`SQL_STATE` varchar(5) DEFAULT NULL,\n\t`SUM_ERROR_RAISED` bigint(20) UNSIGNED NOT NULL,\n\t`SUM_ERROR_HANDLED` bigint(20) UNSIGNED NOT NULL,\n\t`FIRST_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\t`LAST_SEEN` timestamp NULL DEFAULT '0000-00-00 00:00:00',\n\tUNIQUE KEY `ERROR_NUMBER` (`ERROR_NUMBER`)\n) ENGINE = PERFORMANCE_SCHEMA CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci";

    @SneakyThrows
    public static void main(String[] args) {


        Map<String,Map<String, NormalTableConfig>> normalTablesSet = Collections.emptyMap();


        HashMap<String,HashMap<String,String>> map = new HashMap<>();
        for (Map.Entry<String, Map<String, NormalTableConfig>> stringMapEntry : normalTablesSet.entrySet()) {
            String key = stringMapEntry.getKey();
            Map<String, NormalTableConfig> value = stringMapEntry.getValue();

            for (Map.Entry<String, NormalTableConfig> entry : stringMapEntry.getValue().entrySet()) {
                NormalTableConfig normalTableConfig = entry.getValue();
                String createTableSQL = normalTableConfig.getCreateTableSQL();
                String tableName = entry.getKey();
                String schemaName =key;

                HashMap<String, String> stringStringHashMap = map.computeIfAbsent(schemaName, s1 -> new HashMap<>());
                stringStringHashMap.put(tableName,createTableSQL);

            }
        }
        for (Map.Entry<String, HashMap<String, String>> stringHashMapEntry : map.entrySet()) {
            String key = stringHashMapEntry.getKey();
            HashMap<String, String> value = stringHashMapEntry.getValue();
            System.out.println("-----------------------------------");
            for (Map.Entry<String, String> stringStringEntry : value.entrySet()) {
                String s1 = JsonUtil.toJson(stringStringEntry.getValue());

                System.out.println("public static String "+stringStringEntry.getKey()+ " = "+s1+";");
            }


        }


    }

    private static Map<String, NormalTableConfig> getStringNormalTableConfigMap(String path) throws IOException {
        byte[] bytes = Files.readAllBytes(Paths.get(path));
        String s = new String(bytes);
        LogicSchemaConfig logicSchemaConfig = JsonUtil.from(s, LogicSchemaConfig.class);
        Map<String, NormalTableConfig> normalTables1 = logicSchemaConfig.getNormalTables();
        return normalTables1;
    }
}
